db.info.insert({contextInfo:"I am a programmer, I love life, love family. Every day after work, I write a diary."});
db.info.insert({contextInfo:"I am a programmer, I love PlayGame, love drink. Every day after work, I playGame and drink."});

//全文索引
//db.info.ensureIndex({contextInfo:'text'})

//查找全文索引  - 负号 是不查找的内容
db.info.find({$text:{$search:"programmer"}})

//转义符：